import { createRouter, createWebHistory } from 'vue-router'
import WineryInfo from '../views/WineryInfo.vue'
import VineyardInfo from '../views/VineyardInfo.vue'
import HarvestInfo from '../views/HarvestInfo.vue'
import PreprocessingInfo from '../views/PreprocessingInfo.vue'
import FermentationInfo from '../views/FermentationInfo.vue'
import StorageInfo from '../views/StorageInfo.vue'
import BottlingInfo from '../views/BottlingInfo.vue'
import QualityCheck from '../views/QualityCheck.vue'
import OrderInfo from '../views/OrderInfo.vue'
import LogisticsInfo from '../views/LogisticsInfo.vue'

const routes = [
  { path: '/', redirect: '/winery' },
  { path: '/winery', name: 'WineryInfo', component: WineryInfo },
  { path: '/vineyard', name: 'VineyardInfo', component: VineyardInfo },
  { path: '/harvest', name: 'HarvestInfo', component: HarvestInfo },
  { path: '/preprocessing', name: 'PreprocessingInfo', component: PreprocessingInfo },
  { path: '/fermentation', name: 'FermentationInfo', component: FermentationInfo },
  { path: '/storage', name: 'StorageInfo', component: StorageInfo },
  { path: '/bottling', name: 'BottlingInfo', component: BottlingInfo },
  { path: '/quality', name: 'QualityCheck', component: QualityCheck },
  { path: '/order', name: 'OrderInfo', component: OrderInfo },
  { path: '/logistics', name: 'LogisticsInfo', component: LogisticsInfo }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
